﻿using AiXiu.BLL;
using AiXiu.IBLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AiXiu.WebSite
{
    public partial class UserEdit : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int id =int.Parse(Request.QueryString["Id"]);
            IUserManager userManager = new UserManager();
            var user=userManager.GetUser(id).Result;
            txtName.Text = user.NickName;
            
            txtBirthday.Text = user.Birthday!=null? user.Birthday.Value.ToString("yyyy-MM-dd"):"";
            ddlSex.SelectedIndex = user.Sex;

        }
    }
}